package com.kingyun.gpsinspection.purificationservice.facade.service.tdm;

import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeVo;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.*;

import java.util.List;

/**
 * 问题业务接口
 * Created by sugongche on 2016/11/22.
 */
public interface ProblemService {

    /**
     * 根据主键ID查询对象
     *
     * @param problemVo
     * @return
     * @throws Exception
     */
    ProblemVo queryVoById(ProblemVo problemVo) throws Exception;

    /**
     * 保存信息
     *
     * @param employeeVo
     * @param problem
     * @param uploadFiles
     * @param deletedFiles
     * @return
     */
    int save(EmployeeVo employeeVo, Problem problem, String uploadFiles, String deletedFiles);

    /**
     * 更新信息
     *
     * @param employeeVo
     * @param problem
     * @param uploadFiles
     * @param deletedFiles
     * @return
     */
    int update(EmployeeVo employeeVo, Problem problem, String uploadFiles, String deletedFiles);

    /**
     * 纳入隐患
     *
     * @return
     */
    int updateTrouble(Problem problem);

    /**
     * 指派工单处置人
     *
     * @param employeeVo
     * @param problem
     * @param problemAssignHistory
     * @return
     */
    int assign(EmployeeVo employeeVo, Problem problem, ProblemAssignHistory problemAssignHistory);

    /**
     * 根据ID集合删除
     *
     * @param list
     * @return
     * @throws Exception
     */
    int delByIds(List<String> list) throws Exception;
}
